package com.tx.collections.set;

import java.util.HashSet;
import java.util.Iterator;

/**
 *
 */
public class HashSetDemo {
    public static void main(String[] args) {
        HashSet set = new HashSet();
        set.add("1");
        set.add("1");
        set.add("1");

        Iterator iterator = set.iterator();
        while(iterator.hasNext()){
            Object next = iterator.next();
            System.out.println(next);
        }
    }
}